package com.jet.merchant.domain.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

import com.jet.core.interceptor.JsonbTypeHandler;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 *
 * </p>
 *
 * @author author
 * @since 2025-02-25
 */
@Getter
@Setter
@TableName(value = "m_clerk_account", autoResultMap = true)
@ApiModel(value = "ClerkAccount对象", description = "")
public class ClerkAccount implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.INPUT)
    private String id;

    @TableField("merchant_no")
    private Long merchantNo;

    @TableField("store_no")
    private Long storeNo;

    @TableField(value = "store_nos", typeHandler = JsonbTypeHandler.class)
    private List<Long> storeNos;

    @TableField("username")
    private String username;

    @TableField("password")
    private String password;

    @TableField("name")
    private String name;

    @TableField("phone")
    private String phone;

    @TableField("email")
    private String email;

    @ApiModelProperty("小程序openId")
    @TableField("open_id")
    private String openId;

    @TableField(value = "status", fill = FieldFill.INSERT)
    private Integer status;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @TableField("deleted")
    private Integer deleted;

    @TableField("mobile_cash_mode")
    @Deprecated
    private Integer mobileCashMode;
}
